import { ApiProperty } from "@nestjs/swagger";
import { Column, Entity, PrimaryGeneratedColumn } from "typeorm";

/*
 * @Description: 
 * @Author: fhw
 * @Date: 2022-12-07 14:02:28
 */
@Entity('epidemic-situation')
export class epidemicSituation {
    @ApiProperty({ example: 'id', description: 'id' })
    @PrimaryGeneratedColumn({
        type: 'int',
        comment: 'id',
    })
    id: number;
    @ApiProperty({ example: 'city', description: '城市' })
    @Column({
        type: 'varchar',
        comment: '城市',
        nullable: true
    })
    city: number;

    @ApiProperty({ example: 'address', description: '地址' })
    @Column({
        type: 'varchar',
        comment: '地址',
        nullable: true
    })
    address: number;

    @ApiProperty({ example: 'lat', description: 'lat' })
    @Column({
        type: 'decimal',
        comment: 'lat',
        length: '9,6',
        nullable: true
    })
    lat: number;

    @ApiProperty({ example: 'lng', description: 'lng' })
    @Column({
        type: 'decimal',
        comment: 'lng',
        length: '9,6',
        nullable: true
    })
    lng: number;
}